﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using DerivedHelper;

public partial class DerivedData : System.Web.UI.Page
{
    private string _excelXML = @"Excel.xml";
    protected void Page_Load(object sender, EventArgs e)
    {

    }

    /// <summary>
    /// 有关字段的名字和导出的名字需要在下面的地方改
    /// </summary>
    /// <param name="sender"></param>
    /// <param name="e"></param>
    protected void Button1_Click(object sender, EventArgs e)
    {
        string where = " and  CreatTime>= " + TextBox1.Text + " and CreatTime <=" + TextBox2.Text;
        string s = "";
        ExcelHelper.ToExcelByWhere(_excelXML, where, "asd", Response);
    }
}